home *** CD-ROM | disk | FTP | other *** search
- // Set up the camera
- viewpoint {
- from <0,10,-6>
- at <0,0,0>
- up <0,1,0>
- angle 45
- resolution 160, 160
- }
-
- define white <1,1,1>
- define DarkSlateGray <0.184314, 0.309804, 0.309804>
- define red <1, 0, 0>
- define SkyBlue <0.196078, 0.6, 0.8>
-
- // Set up background color & lights
- background SkyBlue
- light <10,10,-10>
-
- define shiny_red
- texture {
- surface {
- ambient red, 0.2
- diffuse red, 0.6
- specular white, 0.8
- microfacet Reitz 10
- }
- }
-
- define sombbound object { box <-4, -2, -4>, <4, 2, 4> }
-
- define three_sphere object { sphere <0,0,0>, 3 }
-
- define a_const 1.0
- define b_const 2.0
- define c_const 3.0
- define two_pi_a 2.0 * 3.14159265358 * a_const
-
- // Define a diminishing cosine surface (sombrero)
- object {
- function y - c_const * cos(two_pi_a * sqrt(x^2 + z^2)) *
- exp(-b_const * sqrt(x^2 + z^2))
- shiny_red
- bounds sombbound
- }
-